package com.an.house.domain;

public class House {
    //用来表示房子的信息
    //编号 房主 电话 地址 月租 出租状态(已出租/未出租)
    private int id;//编号
    private String name;//房主
    private int phone;//电话
    private String addres;//地址
    private int rent;//月租
    private String state;//状态

    //构造器
    public House(int id, String name, int phone, String addres, int rent, String state) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.addres = addres;
        this.rent = rent;
        this.state = state;
    }
//toString方法

    @Override
    public String toString() {
        return id +
                "\t\t\t\t" + name+
                "\t\t" + phone +
                "\t\t\t" + addres+
                "\t\t" + rent +
                "\t\t" + state ;
    }

    //各属性set get方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public String getAddres() {
        return addres;
    }

    public void setAddres(String addres) {
        this.addres = addres;
    }

    public int getRent() {
        return rent;
    }

    public void setRent(int rent) {
        this.rent = rent;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
